package com.zd.service.impl;

import com.zd.mapper.CooperativeTypeMapper;
import com.zd.model.CooperativeType;
import com.zd.service.ICooperativeTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CooperativeTypeServiceImpl implements ICooperativeTypeService {

    @Autowired
    private CooperativeTypeMapper cooperativeTypeMapper;


    @Override
    public List<CooperativeType> selectCooperativeTypeInfo() {
        return cooperativeTypeMapper.selectCooperativeTypeInfo();
    }

    @Override
    public CooperativeType selectByPrimaryKey(int id) {
        return cooperativeTypeMapper.selectByPrimaryKey(new Long(id));
    }
}
